# tel = {'jack': 4098, 'sape': 4139}
# tel['guido'] = 4127
# print(tel)
# a = tel['jack']
# print(a)
#
# del tel['sape']
# tel['irv'] = 4127
# print(tel)
# list1 = list(tel.keys())
# print(list1)
# print(tel)
# list2 = sorted(tel.keys())
# print(list2)
# print(tel)
#
# c = 'guido' in tel
# print(c)
# d = 'jack' not in tel
# print(d)

tel2 = dict([('sape', 4139), ('guido', 4127), ('jack', 4098)])
print(tel2)

tel3 = {x: x**2 for x in (2, 4, 6)}
print(tel3)

tel4 = dict(sape=4139, guido=4127, jack=4098,asd=123,qwe=124,zxc=2345,tom=456)
print(tel4)

# for k,v in tel4.items():
#     print(k,v)

for i,v in enumerate(['sape','guido','jack','tom']):
    print(i,v)

seasons = ['Spring', 'Summer', 'Fall', 'Winter']
list3 = list(enumerate(seasons))
print(list3)
list4 = list(enumerate(seasons, start=1))
print(list4)

